package com.fourforfo.fourmall.ware.feign;


import com.fourforfo.common.to.ProductSkuInfoTO;
import com.fourforfo.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

@FeignClient("fourmall-product")
public interface ProductFeignService {

    /**
     * 批量获取sku_name
     */
    @PostMapping("product/skuinfo/list/batch/sku_name")
    List<ProductSkuInfoTO> listNameByIds(@RequestBody List<Long> skuIds);
}
